package cn.stylefeng.guns.modular.businessArea.service;

import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import cn.stylefeng.guns.modular.businessArea.entity.BusinessArea;
import cn.stylefeng.guns.modular.businessArea.pojo.request.BusinessAreaRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 业务领域表 服务类
 *
 * @author jizhongbao
 * @date 2022/01/10 15:07
 */
public interface BusinessAreaService extends IService<BusinessArea> {

    /**
     * 新增
     *
     * @param businessAreaRequest 请求参数
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    void add(BusinessAreaRequest businessAreaRequest);

    /**
     * 删除
     *
     * @param businessAreaRequest 请求参数
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    void del(BusinessAreaRequest businessAreaRequest);

    /**
     * 编辑
     *
     * @param businessAreaRequest 请求参数
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    void edit(BusinessAreaRequest businessAreaRequest);

    /**
     * 查询详情
     *
     * @param businessAreaRequest 请求参数
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    BusinessArea detail(BusinessAreaRequest businessAreaRequest);

    /**
     * 获取列表
     *
     * @param businessAreaRequest 请求参数
     * @return List<BusinessArea>   返回结果
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    List<Map<String, Object>> findList(BusinessAreaRequest businessAreaRequest);

    /**
     * 获取列表（带分页）
     *
     * @param businessAreaRequest 请求参数
     * @return PageResult<BusinessArea>   返回结果
     * @author jizhongbao
     * @date 2022/01/10 15:07
     */
    PageResult<Map<String, Object>> findPage(BusinessAreaRequest businessAreaRequest);

}